package com.showcai.service.impl;

import com.showcai.dao.VisitLogMapper;
import com.showcai.module.VisitLog;
import com.showcai.myRunTime.MyRunTimeExcption;
import com.showcai.service.ServiceBase;
import com.showcai.service.VisitLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Baggio on 2018-2-5.
 */
@Service
public class VisitLogServiceImpl extends ServiceBase implements VisitLogService {
    @Autowired
    VisitLogMapper visitLogMapper;

    @Override
    public void createVisitLog(VisitLog visitLog) throws MyRunTimeExcption {
        logger.info("VisitLog===>" + visitLog.getClassName());
        logger.info("VisitLog===>" + visitLog.getMethodName());
        logger.info("VisitLog===>" + visitLog.getParameters());
        visitLogMapper.insertVisitLog(visitLog);
    }
}
